package com.example.wendao.view.viewholder;


import android.os.Bundle;

import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.navigation.Navigation;
import androidx.recyclerview.widget.RecyclerView;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.example.wendao.R;
import com.example.wendao.common.PageUtils;
import com.example.wendao.common.ViewHolderBind;
import com.example.wendao.model.entity.Forum;
import com.example.wendao.model.entity.User;


/**
 * A simple {@link Fragment} subclass.
 */
public class InfoAgreeListViewHolder extends RecyclerView.ViewHolder implements ViewHolderBind<User> {

    private TextView infoAgreeUsername;
    private RelativeLayout layout;

    public InfoAgreeListViewHolder(@NonNull ViewGroup viewGroup) {
        super(PageUtils.inflateItemView(viewGroup, R.layout.fragment_info_agreelist));
        infoAgreeUsername = itemView.findViewById(R.id.info_agree_username);
        layout=itemView.findViewById(R.id.info_agree_layout);
    }

    @Override
    public void bindTo(User user) {
       infoAgreeUsername.setText(user.getUsername()+"点赞了您");

    }
}
